//
//  XLConversationVoiceRecordView.h
//  XLConversationInputView
//
//  Created by ilongge on 2022/8/30.
//

@class XLCvstInputMoreItemModel;
#import <UIKit/UIKit.h>
@protocol XLCIAudioRecorderProtocol <NSObject>
@optional
- (NSDictionary *)audioRecorderParameters;
@end

@interface XLConversationInputVoiceRecordView : UIView
/// 根目录
@property (nonatomic, copy, readonly) NSString *rootPath;
/// 最大语音长度
@property (nonatomic, assign) float maxVoiceDuration;
/// 最小语音长度
@property (nonatomic, assign) float minVoiceDuration;
/// 取消
@property (nonatomic, strong) UILabel *cancleTipLabel;
@property (nonatomic, strong) UIButton *recordAudioButton;
@property (nonatomic, weak) id <XLCIAudioRecorderProtocol> delegate;
@property (nonatomic, copy) void(^audioRecordCompleteBlock)(XLCvstInputMoreItemModel *item, NSURL *recordFileUrl);
- (instancetype)initWithRootPath:(NSString *)rootPath;
- (void)returnToStart;
@end
